﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace BW.MesProject.Production.Domain.Model
{
    [SugarTable("ProductionReport")]
    public class ProductionReporModel
    {
        /// <summary>
        /// 主键编号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        /// <summary>
        /// 编码
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string ProductionReporCode { get; set; }
        /// <summary>
        /// 时间
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public DateTime? DateTime { get; set; }
        /// <summary>
        /// 工单号
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string WorkOrderCode { get; set; }
        /// <summary>
        /// 工序编码
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string ProductionProcessesCode { get; set; }
        /// <summary>
        /// 工序名称
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string ProductionProcessesName { get; set; }
        /// <summary>
        /// 产品编码
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string ProductCode { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string ProductName { get; set; }
        /// <summary>
        /// 产品规格
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string ProductSpec { get; set; }
        /// <summary>
        /// 生产人员
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string ProductionStaff { get; set; }
        /// <summary>
        /// 生产时间
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string ProductionTime { get; set; }
        //报工数量 
        [SugarColumn(IsNullable = true)]
        public int? ReportQuantity { get; set; }
        //合格数量
        [SugarColumn(IsNullable = true)]
        public int? QualifiedQuantity { get; set; }
        //不合格数量
        [SugarColumn(IsNullable = true)]
        public int? UnqualifiedQuantity { get; set; }
        [SugarColumn(IsNullable = true)]
        //附件
        public string Attachment { get; set; }
        [SugarColumn(IsNullable = true)]
        public string CreateBy { get; set; }
        [SugarColumn(IsNullable = true)]
        public DateTime? CreateTime { get; set; }
        [SugarColumn(IsNullable = true)]
        public string UpdateBy { get; set; }
        [SugarColumn(IsNullable = true)]
        public DateTime? UpdateTime { get; set; }
        [SugarColumn(IsNullable = true)]
        public bool? IsDeleted { get; set; }
    }
}
